import {createRouter, createWebHistory} from "vue-router";
import Home from "@/components/Home.vue";
import About from "@/components/About.vue";
import User from "@/components/User.vue";

const routers = [
    {
        path: '/', component: Home
    },
    {
        path: '/about', component: About
    },
    {
        path:'/user/:id',component: User
    }
]
export const router=createRouter({
    history:createWebHistory(),
 routes:routers
})
